<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        article{
            text-align: center;
        }
        .gooInfo{
            width: 600px;
            height: 400px;
            border: 1px solid #000;
            margin: 10px auto;
            padding: 10px;
        }
    </style>
</head>
<body>
    <article>
        <h1>百度地图API</h1>
         <div class="gooInfo" id="gooInfo">

         </div>
    </article>
    <script>
    let gooInfo=     document.getElementById("gooInfo")
 if(navigator.geolocation){
//    alert("你的浏览器支持")
   navigator.geolocation.getCurrentPosition(myGPSFUN)
      
 }else{
    alert("你的浏览器不支持")
 }


function myGPSFUN(e){
  let jd= e.coords.longitude 
  let wd= e.coords.latitude

  let ponint=new BMap.Ponint(133.768, 34.8765)
}




    </script>
</body>
</html>